package com.ghck.server.model;

import java.util.Date;
/**
 * 聊天信息表  <br>
 * chat_message <br>
 * v1.0 2016-05-01
 */
 public class ChatMessage extends BaseModel{
	
	private static final long serialVersionUID = 1L;
	
 	
 	//id
	private Integer id;

 	//组id
 	//thread_id
	private Integer threadId;

 	//发送者ID
 	//from_id
	private Integer fromId;

 	//消息类型, 1:用户消息,2:系统消息
 	//type
	private Integer type;

 	//采用老message表的type定义 + url类型
 	//msg_type
	private Integer msgType;

 	
 	//res_file
	private String resFile;

 	
 	//file_size
	private Integer fileSize;

 	
 	//audio_duration
	private Integer audioDuration;

 	//消息内容
 	//msg
	private String msg;

 	
 	//last_modify_time
	private Date lastModifyTime;

 	
 	//create_time
	private Date createTime;

	
	/**
	*
 	*id
 	*/
	public Integer getId() {
		return id;
	}
	
	/**
	*
 	*id
 	*/
	public void setId(Integer id) {
		this.id = id;
	}
	
	/**
	*组id
 	*thread_id
 	*/
	public Integer getThreadId() {
		return threadId;
	}
	
	/**
	*组id
 	*thread_id
 	*/
	public void setThreadId(Integer threadId) {
		this.threadId = threadId;
	}
	
	/**
	*发送者ID
 	*from_id
 	*/
	public Integer getFromId() {
		return fromId;
	}
	
	/**
	*发送者ID
 	*from_id
 	*/
	public void setFromId(Integer fromId) {
		this.fromId = fromId;
	}
	
	/**
	*消息类型, 1:用户消息,2:系统消息
 	*type
 	*/
	public Integer getType() {
		return type;
	}
	
	/**
	*消息类型, 1:用户消息,2:系统消息
 	*type
 	*/
	public void setType(Integer type) {
		this.type = type;
	}
	
	/**
	*采用老message表的type定义 + url类型
 	*msg_type
 	*/
	public Integer getMsgType() {
		return msgType;
	}
	
	/**
	*采用老message表的type定义 + url类型
 	*msg_type
 	*/
	public void setMsgType(Integer msgType) {
		this.msgType = msgType;
	}
	
	/**
	*
 	*res_file
 	*/
	public String getResFile() {
		return resFile;
	}
	
	/**
	*
 	*res_file
 	*/
	public void setResFile(String resFile) {
		this.resFile = resFile;
	}
	
	/**
	*
 	*file_size
 	*/
	public Integer getFileSize() {
		return fileSize;
	}
	
	/**
	*
 	*file_size
 	*/
	public void setFileSize(Integer fileSize) {
		this.fileSize = fileSize;
	}
	
	/**
	*
 	*audio_duration
 	*/
	public Integer getAudioDuration() {
		return audioDuration;
	}
	
	/**
	*
 	*audio_duration
 	*/
	public void setAudioDuration(Integer audioDuration) {
		this.audioDuration = audioDuration;
	}
	
	/**
	*消息内容
 	*msg
 	*/
	public String getMsg() {
		return msg;
	}
	
	/**
	*消息内容
 	*msg
 	*/
	public void setMsg(String msg) {
		this.msg = msg;
	}
	
	/**
	*
 	*last_modify_time
 	*/
	public Date getLastModifyTime() {
		return lastModifyTime;
	}
	
	/**
	*
 	*last_modify_time
 	*/
	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}
	
	/**
	*
 	*create_time
 	*/
	public Date getCreateTime() {
		return createTime;
	}
	
	/**
	*
 	*create_time
 	*/
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	
	@Override
	public void dealWith(){
		super.dealWith();
		
	}
}	